import { SET_ISEXTEND } from './mutationType'
import { SET_ISLOGIN } from './mutationType'
import { USER_INFO } from './mutationType'
import { SET_IM_CLIENT } from './mutationType'


export default {
    [SET_ISEXTEND] (state, isExtend) {
        state.isExtend = isExtend
        localStorage.setItem('isExtend', isExtend)
    },
    [SET_ISLOGIN] (state, isLogin) {
        state.isLogin = isLogin
        localStorage.setItem('isLogin', isLogin)
    },
    [USER_INFO] (state, userInfo) {
        state.userInfo = userInfo
        localStorage.setItem('userInfo', userInfo)
    },

  [SET_IM_CLIENT]: (state, data) => {
    state.imClient = data
  },
}
